/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap/bootstrap');

window.Vue = require('vue');

import router from './bootstrap/router'
import store from './store'
import iView from 'iview'
import Util from './libs/util'

Vue.use(iView)

//阻止 vue 在启动时生成生产提示。
Vue.config.productionTip = false

/**
 * 自定义组件
 */
window.ModelDataSource = require('./libs/ModelDataSource');
Vue.use(ModelDataSource);
window.ListDataSource = require('./libs/ListDataSource');
Vue.use(ListDataSource);


/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */

Vue.component('pagination', require('./components/Pagination.vue'));
Vue.component('vue-table', require('./components/Table.vue'));
Vue.component('vue-tree-table', require('./components/TreeTable.vue'));
Vue.component('vue-img-table', require('./components/ImageTable.vue'));
Vue.component('bs4-card', require('./components/card.vue'));
Vue.component('app', require('./app.vue'));

const app = new Vue({
  el: '#app',
  router: router,
  store: store,
  template: '<app/>',
  mounted () {

  }
})





